<?php

;//require_once 'Base/CommentRow.php';

/**
 * Generated Model class.
 */
class CommentRow extends Base_CommentRow
{
	public function getContentListElement($type = null)
	{
		$element = new List_Comment();
		$element->setDate($this->getDate());
		$element->setText($this->getText());
		$profileRow = $this->getProfileRowByProfileId();
		if ($profileRow) {
			$element->setProfile($profileRow->getFirstName());
			$element->setProfileUrl('#');
			
			$photoRow = $profileRow->getPhotoRowByPhotoId();
			if ($photoRow) {
				$element->setPhoto($photoRow->getUrl());
			}
		}
		return $element; 
	}

}

